﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Threading.Tasks;

using RexToy.Logging;

namespace Monitor.Core.Log
{
    class FileWriter : IWriter
    {
        public FileWriter()
        {

        }

        public void Write(string msg)
        {
            var path = RexToy.Runtime.GetPath(@".\log.txt");
            File.AppendAllText(path, msg + Environment.NewLine);
        }

        public void Dispose()
        {

        }
    }
}
